import java.util.ArrayList;

class ArrayListTesteur {
	
	public static void main (String args[]) {
		ArrayList<String> bla = blablabla(5);
		dsp(bla);
		cleaner(bla);
		dsp(bla);
	}
	
	public static ArrayList<String> blablabla (int n){
		ArrayList<String> bla = new ArrayList<String>();
		while (n-- != 0) {
			bla.add("au hasard");
		}
		return bla;
	}
	public static void adder(ArrayList<String> ar, String s){
		ar.add(s);
		ar.add(s);
	}
	public static void cleaner(ArrayList<String> ar){
		ar.clear();
	}
	public static void dsp(ArrayList<String> ar){
		for (String x: ar) {
			System.out.println(x);
		}
	}
}
